//
//  QLFragment.m
//  QLSchool_IOS
//
//  Created by anan on 14-1-14.
//  Copyright (c) 2014年 baobaodev_anan. All rights reserved.
//

#import "QLFragment.h"

@implementation QLFragment

- (id)initWithXibName:(NSString *)xibName viewController:(UIViewController*)viewController
{
    self = [super init];
    if (self) {
        // Initialization code
        self.xibName = xibName;
        self.viewController = viewController;
    }
    return self;
}

/**
 *  销毁碎片
 */
-(void)destroy
{

}

/**
 *  重新装载数据
 */
-(void)reloadData
{
    if (self.contentView==nil) {
        self.contentView = [[[NSBundle mainBundle]loadNibNamed:self.xibName owner:self options:NULL]lastObject];
    }
}

@end
